<template>
	<rui-pages hBg="#ffd53d" :hHeight="350" v-if="is_share">
		<rui-user-invite-banner></rui-user-invite-banner>
		<rui-user-invite-member></rui-user-invite-member>
	</rui-pages>
	<view v-else>
		此功能已关闭
	</view>


</template>


<script setup>
	import {
		ref
	} from "vue"
	import {
		onLoad,
		onShow,
		onShareAppMessage,
		onShareTimeline,
		onPageScroll
	} from "@dcloudio/uni-app"
	import share from "@/util/share.js"
	let is_share = ref(0);
	onLoad(() => {
		uni.getStorage({
			key: "BaseData",
			success: res => {
				is_share.value = res.data.is_share || 0;
			}
		})
	})
	onShareAppMessage(() => {
		return share.getData()
	})

	onShareTimeline(() => {
		return share.getData()
	})
</script>

<style>

</style>